#include <stdio.h>

int main(void)
{
	int a, b, t;

	printf("Input two integers: ");
	scanf("%d%d", &a, &b);
	if (a > b)
	{
		t = a;
		a = b;
		b = t;
	}
	printf("%d %d\n", a, b);

	return 0;
}